package net.sos.playground;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JLabel;

public class HelloWorldSwing {

   private static void renderUI() {
      JFrame mainFrame = new JFrame("Hello World!");
      mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      mainFrame.setSize(500, 500);
      
      JLabel label = new JLabel("hello sucka!");
      mainFrame.getContentPane().add(label);
      
      mainFrame.pack();
      mainFrame.setVisible(true);
   }
   
   public static void main(final String[] args) {
      EventQueue.invokeLater(new Runnable() {
         public void run() {
            renderUI();
         }
      });
   }
   
}
